home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World's Largest Collection of Windows Software
/
The World's Largest Collection of Windows Software - Disc 2.iso
/
textproc
/
_j1
/
tex2rtf
/
src
/
rtfutils.h
< prev
next >
Wrap
Text File
|
1993-10-22
|
1KB
|
54 lines
/*
* rtfutils.h
*
* Include for RTF-specific stuff
*
*/
/*
* Write a suitable RTF header.
*
*/
void WriteRTFHeader(FILE *fd);
/*
* Given a TexChunk with a string value, scans through the string
* converting Latex-isms into RTF-isms, such as 2 newlines -> \par,
* and inserting spaces at the start of lines since in Latex, a newline
* implies a space, but not in RTF.
*
*/
void ProcessText2RTF(TexChunk *chunk);
/*
* Scan through all chunks starting from the given one,
* calling ProcessText2RTF to convert Latex-isms to RTF-isms.
* This should be called after Tex2Any has parsed the file,
* and before TraverseDocument is called.
*
*/
void Text2RTF(TexChunk *chunk);
/*
* Keeping track of environments to restore the styles after \pard.
* Push strings like "\qc" onto stack.
*
*/
void PushEnvironmentStyle(char *style);
void PopEnvironmentStyle(void);
// Write out the styles, most recent first.
void WriteEnvironmentStyles(void);
// Called on start/end of macro examination
void DefaultRtfOnMacro(char *name, int no_args, Bool start);
// Called on start/end of argument examination
Bool DefaultRtfOnArgument(char *macro_name, int arg_no, Bool start);